/*
 * @Descripttion: 用于存储其他模块或功能用的数据、方法
 * @version: 
 * @Author: wangshengwei
 * @Date: 2021-05-22 16:15:22
 * @LastEditors: wangshengwei
 * @LastEditTime: 2021-05-26 09:31:18
 */

const state = {
    checkboxState: false, // 申报单位申明多选框是否点击
    basicSituationFlag: 0, // 辖区基本基本情况标识是否第一次点击(大于1则为多次点击)
    UploadattachmentsFlag: 0, // 附件上传标识是否第一次点击(大于1则为多次点击)
    applicationInfoIsValid: true, // 申报信息是否通过校验
    basicSituationIsValid: true, // 辖区基本情况是否通过校验
    uploadattachmentsIsValid: true, // 附件上传是否通过校验
}

const mutations = {
    CHECK_APP_VALID: (state, applicationInfoIsValid) => { // 点击辖区基本情况判断申报信息是否校验通过
        state.applicationInfoIsValid = applicationInfoIsValid;
    },
    CHECK_BASE_VALID: (state, basicSituationIsValid) => { // 点击附件上传判断辖区基本情况是否校验通过
        state.basicSituationIsValid = basicSituationIsValid;
    },
    CHECK_UPLOAD_VALID: (state, uploadattachmentsIsValid) => { // 点击附件上传判断辖区基本情况是否校验通过
        state.uploadattachmentsIsValid = uploadattachmentsIsValid;
    },
}

export default {
    namespaced: true,
    state,
    mutations
}